if(${CMAKE_BUILD_TYPE} MATCHES "Release")
    message(STATUS "Release")
    set(BuildType "Release")
else()
    message(STATUS "Debug")
    set(BuildType "Debug")
endif()

set(RELEASE_DIR ${PROJECT_SOURCE_DIR}/release)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/linux/${BuildType})

aux_source_directory(. DIR_LIB_SRCS)
add_library(dir1 SHARED ${DIR_LIB_SRCS})